﻿<!DOCTYPE html>
<html lang="zh-CN" ng-app="Emergency">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>智慧管控平台</title>
    <link href="~/Assets/Emergency/css/base.css" rel="stylesheet" />
    <link href="~/Assets/Emergency/css/index.css" rel="stylesheet" />
    <link href="~/Assets/Emergency/css/bootstrap.css" rel="stylesheet" />
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <link href="~/Assets/Emergency/css/banner.css" rel="stylesheet" />
    <link href="~/Assets/Emergency/css/font-awesome.min.css" rel="stylesheet" />
    <link href="~/Assets/DashBoard/css/video-js.min.css" rel="stylesheet" />
    <style>
        .t_title {
            width: 100%;
            height: 100%;
            text-align: center;
            font-size: 2.5em;
            line-height: 80px;
            color: #fff;
        }

        .text {
            color: lawngreen;
            font-weight: bold;
            font-size: 15px;
            position: absolute;
        }

        #chart_map {
            cursor: pointer;
        }

        .t_show {
            position: absolute;
            top: 0;
            right: 0;
            border-radius: 2px;
            background: #2C58A6;
            padding: 2px 5px;
            color: #fff;
            cursor: pointer;
        }

        #worktypelist {
            position: absolute;
            top: 20px;
            left: 10px;
            float: left;
        }

            #worktypelist li {
                list-style: none;
                color: white;
                margin-left: 5px;
            }

            #worktypelist span {
                width: 20px;
                height: 12px;
                background-color: white;
                display: block;
                border-radius: 5px;
                float: left;
                margin: 3px;
            }

        .table_p {
            height: 93%;
            margin-top: 7%;
            position: relative;
        }

        .table_p01 {
            height: auto !important;
            margin-top: 0 !important;
            position: relative;
        }

            .table_p01 table td {
                padding: 6px 0;
            }




        .table_p table tbody {
            color: #ffffff;
            font-size: 13px;
        }

            .table_p table tbody tr:nth-child(2n+1) {
                background-color: #072951;
                box-shadow: -10px 0px 15px #034c6a inset, 10px 0px 15px #034c6a inset;
            }

        .meter-info {
            width: 16%;
            word-break: keep-all; /* 不换行 */
            white-space: nowrap;
            display: inline-block;
        }

        .meter-head {
            color: white;
            font-weight: bold;
            font-size: 14px;
        }

        .meter-footer {
            color: white;
            font-weight: bold;
            font-size: 18px;
        }

        .meter {
            width: 25px;
            height: 150px;
            display: block;
            margin: 0 auto;
        }

        .table_p {
            line-height: 30px;
            font-size: 18px;
        }

            .table_p span {
                display: block;
                float: left;
                width: 80px;
                font-weight: bold;
                text-align: right;
            }

            .table_p table {
                width: 100%;
                border-collapse: collapse;
                position: absolute;
                text-align: center;
            }

                .table_p table tr {
                    height: 40px;
                }

                .table_p table thead th {
                    color: #61d2f7;
                    font-size: 14px;
                    font-weight: 600;
                    padding-top: 5px;
                    padding-bottom: 5px;
                    text-align: center;
                }

        .menu_btn {
            margin-top: 30px;
            cursor: pointer;
            box-sizing: border-box;
            border: 2px solid red;
            border-image: url(~/Assets/Emergency/img/border.png) 51 38 21 132;
            border-width: 1.125rem 1.583rem 0.875rem 2.5rem;
            width: 100px;
            height: 40px;
            font-size: 14px;
            font-weight: bold;
        }

            .menu_btn a {
                display: block;
                cursor: pointer;
                text-align: center;
            }

        .div-a {
            position: absolute;
        }

        .detail_div {
            background-color: rgba(0,0,0,0.5);
            color: #FFF;
            border-radius: 4px;
            z-index: 999;
            position: fixed;
            width: 300px;
        }

        .detail_text {
            display: none;
            font-size: 17px;
        }

        .menu-active {
            color: white;
            font-weight: bold;
        }

        #triangle-topleft {
            width: 0;
            height: 0;
            border-top: 100px solid black;
            border-right: 100px solid transparent;
        }

        #triangle-topright {
            width: 0;
            height: 0;
            border-top: 100px solid black;
            border-left: 100px solid transparent;
        }

        div::-webkit-scrollbar {
            width: 10px;
            height: 10px;
            /**/
        }

        div::-webkit-scrollbar-track {
            background: rgb(12, 27, 45);
            border-radius: 2px;
        }

        div::-webkit-scrollbar-thumb {
            background: rgb(51,122,183);
            border-radius: 10px;
        }

            div::-webkit-scrollbar-thumb:hover {
                background: #333;
            }

        div::-webkit-scrollbar-corner {
            background: #179a16;
        }


        tbody::-webkit-scrollbar {
            width: 10px;
            height: 10px;
            /**/
        }

        tbody::-webkit-scrollbar-track {
            background: rgb(12, 27, 45);
            border-radius: 2px;
        }

        tbody::-webkit-scrollbar-thumb {
            background: rgb(51,122,183);
            border-radius: 10px;
        }

            tbody::-webkit-scrollbar-thumb:hover {
                background: #333;
            }

        tbody::-webkit-scrollbar-corner {
            background: #179a16;
        }

        .factory-active {
            color: white;
            font-weight: bold;
        }

            .factory-active:hover {
                color: white;
                font-weight: bold;
            }
    </style>
</head>
<body style="overflow:hidden;height:100%;overflow-x:hidden;" ng-controller="EmergencyController" ng-init="Init2014SPI();GetGLFExhaust();GL2014Status();GetPortPressure();">
    <a href="../Emergency/DeviceList" style="background:none;font-size:30px;width:10%;position:absolute; font-size:18px;top:40px;left:40px;"><span class="glyphicon glyphicon-home"></span></a>
    <div class="header">
        <div class="bg_header">
            <div class="header_nav fl t_title">
                2014锅炉房安全运行管控
            </div>
        </div>
    </div>
    <div class="data_content">
        <div class="data_main">
            <div class="main_left fl">
                <div class="main_left fl">
                    <div class="left_1 t_btn6" style="cursor: pointer;">
                        <!--左上边框-->
                        <div class="t_line_box">
                            <i class="t_l_line"></i>
                            <i class="l_t_line"></i>
                        </div>
                        <!--右上边框-->
                        <div class="t_line_box">
                            <i class="t_r_line"></i>
                            <i class="r_t_line"></i>
                        </div>
                        <!--左下边框-->
                        <div class="t_line_box">
                            <i class="l_b_line"></i>
                            <i class="b_l_line"></i>
                        </div>
                        <!--右下边框-->
                        <div class="t_line_box">
                            <i class="r_b_line"></i>
                            <i class="b_r_line"></i>
                        </div>
                        <div class="main_title">
                            <i class="icon-off"></i>
                            设备状态&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        </div>
                        <div id="" class="chart" style="width:100%;height: 280px;padding:50px;padding-left:80px;">
                            <ul id="worktypelist">
                                <li><span style="background-color:forestgreen;"></span>运行</li>
                                <li><span></span>停机</li>
                            </ul>
                            <div class="meter-info text-center" style="margin-left:10px;" ng-repeat="x in GList">
                                <div class="meter-head">
                                    <small></small>
                                </div>
                                <div class="meter meter-striped">
                                    <div class="meter-bar meter-bar-info active" role="meterbar" ng-style="{height: (x.RunState*100) / 1  + '%'}" style="background-color:forestgreen;"></div>
                                </div>
                                <div class="meter-footer"><small>{{x.DeviceName|SimpleName}}</small></div>
                            </div>
                        </div>
                    </div>
                    <div class="left_2" style="cursor: pointer;">
                        <!--左上边框-->
                        <div class="t_line_box">
                            <i class="t_l_line"></i>
                            <i class="l_t_line"></i>
                        </div>
                        <!--右上边框-->
                        <div class="t_line_box">
                            <i class="t_r_line"></i>
                            <i class="r_t_line"></i>
                        </div>
                        <!--左下边框-->
                        <div class="t_line_box">
                            <i class="l_b_line"></i>
                            <i class="b_l_line"></i>
                        </div>
                        <!--右下边框-->
                        <div class="t_line_box">
                            <i class="r_b_line"></i>
                            <i class="b_r_line"></i>
                        </div>
                        <div class="main_title">
                            <i class="icon-user"></i>
                            值班人员&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                        </div>
                        <div class="chart" style="width:100%;height: 280px;">
                            <div id="" style="width:100%; height:100%;float:left;">
                                <div class="div_any_child" style="height: 230px;overflow-y:scroll;">
                                    <div class="table_p" style="height:96%;margin-top: 20px;">
                                        <table>
                                            <thead>
                                                <tr>
                                                    <th>持证人</th>
                                                    <th>工种</th>
                                                    <th>有效期</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>邵国兴</td>
                                                    <td>司炉工</td>
                                                    <td>2025/4/5</td>
                                                </tr>
                                                <tr>
                                                    <td>张彪</td>
                                                    <td>司炉工</td>
                                                    <td>2022/5/7</td>
                                                </tr>
                                                <tr>
                                                    <td>倪永汀</td>
                                                    <td>司炉工</td>
                                                    <td>2025/5/18</td>
                                                </tr>
                                                <tr>
                                                    <td>乔建龙</td>
                                                    <td>司炉工</td>
                                                    <td>2021/6/1</td>
                                                </tr>
                                                <tr>
                                                    <td>丁福弟</td>
                                                    <td>司炉工</td>
                                                    <td>2021/10/22</td>
                                                </tr>
                                                <tr>
                                                    <td>黄鹏</td>
                                                    <td>司炉工</td>
                                                    <td>2024/7/1</td>
                                                </tr>
                                                <tr>
                                                    <td>沈阳</td>
                                                    <td>司炉工</td>
                                                    <td>2024/6/1</td>
                                                </tr>
                                                <tr>
                                                    <td>孟江春</td>
                                                    <td>司炉工</td>
                                                    <td>2025/5/1</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>

            <div class="main_center fl">
                <div class="center_text" data-toggle="modal" data-target="#formModal">
                    <!--左上边框-->
                    <div class="t_line_box">
                        <i class="t_l_line"></i>
                        <i class="l_t_line"></i>
                    </div>
                    <!--右上边框-->
                    <div class="t_line_box">
                        <i class="t_r_line"></i>
                        <i class="r_t_line"></i>
                    </div>
                    <!--左下边框-->
                    <div class="t_line_box">
                        <i class="l_b_line"></i>
                        <i class="b_l_line"></i>
                    </div>
                    <!--右下边框-->
                    <div class="t_line_box">
                        <i class="r_b_line"></i>
                        <i class="b_r_line"></i>
                    </div>
                    <div class="main_title">
                        <i class="icon-dashboard"></i>
                        实时数据&nbsp;&nbsp;&nbsp;&nbsp;
                    </div>
                    <div class="zhuashou" style="position:absolute;bottom:15px;left:40px; color:white;font-weight:bold;font-size:17px;">

                    </div>
                    <a data-toggle="modal" data-target="#formModal"><div style="cursor:pointer;"><img src="~/Images/Monitor/data2014bg.png" width="925" /></div></a>

                </div>
            </div>

            <div class="main_right fr">
                <div class="right_1">
                    <!--左上边框-->
                    <div class="t_line_box">
                        <i class="t_l_line"></i>
                        <i class="l_t_line"></i>
                    </div>
                    <!--右上边框-->
                    <div class="t_line_box">
                        <i class="t_r_line"></i>
                        <i class="r_t_line"></i>
                    </div>
                    <!--左下边框-->
                    <div class="t_line_box">
                        <i class="l_b_line"></i>
                        <i class="b_l_line"></i>
                    </div>
                    <!--右下边框-->
                    <div class="t_line_box">
                        <i class="r_b_line"></i>
                        <i class="b_r_line"></i>
                    </div>
                    <div class="main_title">
                        <i class="icon-info"></i>
                        安全指数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </div>
                    <div id="chart_spi" class="echart" style="width:100%;height: 280px;"></div>
                </div>

                <div class="right_2">
                    <!--左上边框-->
                    <div class="t_line_box">
                        <i class="t_l_line"></i>
                        <i class="l_t_line"></i>
                    </div>
                    <!--右上边框-->
                    <div class="t_line_box">
                        <i class="t_r_line"></i>
                        <i class="r_t_line"></i>
                    </div>
                    <!--左下边框-->
                    <div class="t_line_box">
                        <i class="l_b_line"></i>
                        <i class="b_l_line"></i>
                    </div>
                    <!--右下边框-->
                    <div class="t_line_box">
                        <i class="r_b_line"></i>
                        <i class="b_r_line"></i>
                    </div>
                    <div class="main_title">
                        <img src="/Images/Monitor/exhaust_1.png" width="25" style="margin-top:-5px;margin-left: 11px;">
                        氮氧浓度&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </div>
                    <div id="chart_exhaust" class="echart fl t_btn4" style="width:100%;height: 280px;cursor: pointer;"></div>
                </div>
            </div>
        </div>

        <div class="data_bottom">
            <div class="bottom_1 fl t_btn5" style="cursor: pointer;">
                <!--左上边框-->
                <div class="t_line_box">
                    <i class="t_l_line"></i>
                    <i class="l_t_line"></i>
                </div>
                <!--右上边框-->
                <div class="t_line_box">
                    <i class="t_r_line"></i>
                    <i class="r_t_line"></i>
                </div>
                <!--左下边框-->
                <div class="t_line_box">
                    <i class="l_b_line"></i>
                    <i class="b_l_line"></i>
                </div>
                <!--右下边框-->
                <div class="t_line_box">
                    <i class="r_b_line"></i>
                    <i class="b_r_line"></i>
                </div>
                <div class="main_title">

                    <i class="icon-paste"></i>
                    应急处置&nbsp;&nbsp;&nbsp;&nbsp;

                </div>
                <div id="chart_department" class="echart fl" style="width:100%;height: 280px;margin-top: 15px;">
                    <img src="~/Images/Monitor/emergency2014flow.png" width="450" height="320" />
                </div>
            </div>
            <div class="bottom_center fl">
                <div class="bottom_2 fl">
                    <!--左上边框-->
                    <div class="t_line_box">
                        <i class="t_l_line"></i>
                        <i class="l_t_line"></i>
                    </div>
                    <!--右上边框-->
                    <div class="t_line_box">
                        <i class="t_r_line"></i>
                        <i class="r_t_line"></i>
                    </div>
                    <!--左下边框-->
                    <div class="t_line_box">
                        <i class="l_b_line"></i>
                        <i class="b_l_line"></i>
                    </div>
                    <!--右下边框-->
                    <div class="t_line_box">
                        <i class="r_b_line"></i>
                        <i class="b_r_line"></i>
                    </div>
                    <div class="main_title">
                        <i class="glyphicon glyphicon-tasks"></i>
                        设备及附件&nbsp;
                    </div>
                    <div id="chart_sop" class="table_p" style="width:100%;height: 280px;margin-top: 15px; float:left;">
                        <div class="div_any_child" style="height: 270px;overflow-y:scroll;">
                            <div class="table_p" style="height:96%;margin-top: 20px;">
                                <table>
                                    <thead>
                                        <tr>
                                            <th>设备</th>
                                            <th>部门</th>
                                            <th>维检日期</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td>2014锅炉房1#锅炉</td>
                                            <td>设备动力部</td>
                                            <td>2021-12-17</td>
                                        </tr>
                                        <tr>
                                            <td>2014锅炉房2#锅炉</td>
                                            <td>设备动力部</td>
                                            <td>2021-12-17</td>
                                        </tr>
                                        <tr>
                                            <td>2014锅炉房3#锅炉</td>
                                            <td>设备动力部</td>
                                            <td>2021-12-17</td>
                                        </tr>
                                        <tr>
                                            <td>2014锅炉房4#锅炉</td>
                                            <td>设备动力部</td>
                                            <td>2021-12-17</td>
                                        </tr>
                                        <tr>
                                            <td>2014锅炉房5#锅炉</td>
                                            <td>设备动力部</td>
                                            <td>2021-12-17</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="bottom_center fl" style="margin-left:22px;">
                <div class="bottom_2 fl">
                    <!--左上边框-->
                    <div class="t_line_box">
                        <i class="t_l_line"></i>
                        <i class="l_t_line"></i>
                    </div>
                    <!--右上边框-->
                    <div class="t_line_box">
                        <i class="t_r_line"></i>
                        <i class="r_t_line"></i>
                    </div>
                    <!--左下边框-->
                    <div class="t_line_box">
                        <i class="l_b_line"></i>
                        <i class="b_l_line"></i>
                    </div>
                    <!--右下边框-->
                    <div class="t_line_box">
                        <i class="r_b_line"></i>
                        <i class="b_r_line"></i>
                    </div><div class="main_title">
                        <i class="icon-camera"></i>
                        视频监控&nbsp;&nbsp;&nbsp;&nbsp;
                    </div>
                    <div class="echart fl" style="width:100%;height: 280px;margin-top: 15px;padding-top:10px;">

                        <video id="my-video" preload="none" controls style="width:95%;border:none;margin:10px;" poster="../Images/Monitor/glf2014camera.png">
                          
                        </video>

                    </div>

                </div>
            </div>
            <div class="bottom_4 fr">
                <!--左上边框-->
                <div class="t_line_box">
                    <i class="t_l_line"></i>
                    <i class="l_t_line"></i>
                </div>
                <!--右上边框-->
                <div class="t_line_box">
                    <i class="t_r_line"></i>
                    <i class="r_t_line"></i>
                </div>
                <!--左下边框-->
                <div class="t_line_box">
                    <i class="l_b_line"></i>
                    <i class="b_l_line"></i>
                </div>
                <!--右下边框-->
                <div class="t_line_box">
                    <i class="r_b_line"></i>
                    <i class="b_r_line"></i>
                </div>
                <div class="main_title">
                    <i class="icon-check"></i>出口压力
                    &nbsp;&nbsp;&nbsp;&nbsp;
                </div>
                <div id="chart_portexpressure" class="table_p" style="width:100%;height: 280px;margin-top: 15px; float:left;">

                </div>
            </div>
        </div>

        <div class="modal fade" id="formModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="overflow:hidden;">
            <div class="modal-dialog" style="min-width:1671px;">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="myModalLabel">设备监控</h4>
                    </div>
                    <div class="modal-body" style="margin:0px;padding:0px;height:830px; background-size:100%; background-repeat:no-repeat;">
                        <div class="row">
                            <div class="col-lg-12" style="width:1671px;height:850px;margin:0px;padding:0px; background-size:100%; background-repeat:no-repeat; background-image:url('../../Assets/Images/2014glf.png')">
                                <div>
                                    <span class="text" id="C1_B1_SG1_fillrate" style="top:46.8rem;left:20.5rem;">0</span>
                                    <span class="text" id="C1_B1_SG1_fdwttmp" style="top:48.3rem;left:20.5rem;">0</span>
                                    <span class="text" id="C1_B1_SG1_fdwtprs" style="top:49.8rem;left:20.5rem;">0</span>
                                    <span class="text" id="C1_B1_SG1_stktmp" style="top:65.5rem;left:28.3rem;">0</span>
                                    <span class="text" id="C1_B1_SG1_stmprs" style="top:67rem;left:28.3rem;">0</span>
                                    <span class="text" id="C1_B1_SG1_cltmp1" style="top:68.5rem;left:28.3rem;">0</span>
                                    <span class="text" id="C1_B1_SG1_firerate" style="top:70.5rem;left:28.8rem;">0</span>
                                </div>
                                <div>
                                    <span class="text" id="C2_B2_SG2_fillrate" style="top:46.8rem;left:52rem;"></span>
                                    <span class="text" id="C2_B2_SG2_fdwttmp" style="top:48.3rem;left:52rem;">0</span>
                                    <span class="text" id="C2_B2_SG2_fdwtprs" style="top:49.8rem;left:52rem;">0</span>
                                    <span class="text" id="C2_B2_SG2_stktmp" style="top:65.5rem;left:59.5rem;">0</span>
                                    <span class="text" id="C2_B2_SG2_stmprs" style="top:67rem;left:59.5rem;">0</span>
                                    <span class="text" id="C2_B2_SG2_cltmp1" style="top:68.5rem;left:59.5rem;">0</span>
                                    <span class="text" id="C2_B2_SG2_firerate" style="top:70.5rem;left:60rem;">0</span>
                                </div>
                                <div>
                                    <span class="text" id="C3_B3_SG3_fillrate" style="top:46.8rem;left:83.2rem;">0</span>
                                    <span class="text" id="C3_B3_SG3_fdwttmp" style="top:48.3rem;left:83.2rem;">0</span>
                                    <span class="text" id="C3_B3_SG3_fdwtprs" style="top:49.8rem;left:83.2rem;">0</span>
                                    <span class="text" id="C3_B3_SG3_stktmp" style="top:65.5rem;left:90.7rem;">0</span>
                                    <span class="text" id="C3_B3_SG3_stmprs" style="top:67rem;left:90.7rem;">0</span>
                                    <span class="text" id="C3_B3_SG3_cltmp1" style="top:68.5rem;left:90.4rem;">0</span>
                                    <span class="text" id="C3_B3_SG3_firerate" style="top:70.5rem;left:91rem;">0</span>
                                </div>
                                <div>
                                    <span class="text" id="C4_B4_SG4_stktmp" style="top:50.3rem;left:112.5rem;">0</span>
                                    <span class="text" id="C4_B4_SG4_inwtmp" style="top:51.8rem;left:112.5rem;">0</span>
                                    <span class="text" id="C4_B4_SG4_inwprs" style="top:53.3rem;left:112.5rem;">0</span>
                                    <span class="text" id="C4_B4_SG4_outwtmp" style="top:65.5rem;left:121.5rem;">0</span>
                                    <span class="text" id="C4_B4_SG4_outwprs" style="top:67rem;left:121.5rem;">0</span>
                                    <span class="text" id="C4_B4_SG4_coiltmp1" style="top:68.5rem;left:121.5rem;">0</span>
                                    <span class="text" id="C4_B4_SG4_firerate" style="top:70.5rem;left:121.5rem;">0</span>
                                </div>
                                <div>
                                    <span class="text" id="C5_B5_SG5_stktmp" style="top:50.3rem;left:141.5rem;">0</span>
                                    <span class="text" id="C5_B5_SG5_inwtmp" style="top:51.8rem;left:141.5rem;">0</span>
                                    <span class="text" id="C5_B5_SG5_inwprs" style="top:53.3rem;left:141.5rem;">0</span>
                                    <span class="text" id="C5_B5_SG5_outwtmp" style="top:65.5rem;left:150.2rem;">0</span>
                                    <span class="text" id="C5_B5_SG5_outwprs" style="top:67rem;left:150.2rem;">0</span>
                                    <span class="text" id="C5_B5_SG5_coiltmp1" style="top:68.5rem;left:150.2rem;">0</span>
                                    <span class="text" id="C5_B5_SG5_firerate" style="top:70.5rem;left:150.5rem;">0</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>

<script src="~/Assets/Scripts/base/angular.js"></script>
<script src="~/Assets/Scripts/libs/hls.js"></script>
<script type="text/javascript" src="~/Assets/DashBoard/js/jquery.min.js"></script>
<script src="~/Assets/Scripts/libs/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5.0.1/dist/echarts.min.js"></script>
<script src="~/Assets/Emergency/js/lb.js"></script>
<script src="~/Assets/Scripts/pg/Emergency.js"></script>
<script>

    function LoadData() {
        $.ajax({
            type: "post",
            url: '../Monitor/GetEnergyData?type=2014',
            success: function (data) {
                var datas = data;
                if (datas.rts != null && datas.rts.length > 0) {
                    var dataArray = datas.rts;
                    for (var i = 0; i < dataArray.length; i++) {
                        if (dataArray[i].val.toString().indexOf('.') > -1) {
                            if (dataArray[i].tnm.indexOf('rate') > -1) {
                                $("#" + dataArray[i].tnm).html(parseFloat(dataArray[i].val) * 100);
                            }
                            else {
                                $("#" + dataArray[i].tnm).html(parseFloat(dataArray[i].val).toFixed(2));
                            }

                        }

                        else {
                            $("#" + dataArray[i].tnm).html(dataArray[i].val);
                        }

                    }
                }
            }, error: function (err) {
                alert(err);
            }
        });
    }
    LoadData();
    window.setInterval("LoadData()", 20000);

    if (Hls.isSupported()) {
        var video = document.getElementById('my-video');
        var hls = new Hls();
        hls.loadSource('http://39.104.140.24:8089/cgi-bin/live.m3u8?ip=PD2014GLF008&Port=8000&dev=0&username=Supervisor&pwd=&mainstream=1&PB=0&channel=3');
        hls.attachMedia(video);
        setTimeout(() => {
            video.pause()
             video.load()
        }, 10)
        hls.on(Hls.Events.MANIFEST_PARSED, function () {
           // video.play();
        });
    }

    else if (video.canPlayType('application/vnd.apple.mpegurl')) {
        video.src = 'http://39.104.140.24:8089/cgi-bin/live.m3u8?ip=PD2014GLF008&Port=8000&dev=0&username=Supervisor&pwd=&mainstream=1&PB=0&channel=3';
        setTimeout(() => {
            video.pause()
            video.load()
        }, 10)
        video.addEventListener('canplay', function () {
           //video.play();
        });
    }
</script>

</html>